import request from '@/utils/request'

// 查询抖音商品详情列表
export function listDydetail(query) {
  return request({
    url: '/system/dydetail/list',
    method: 'get',
    params: query
  })
}

// 查询抖音商品详情详细
export function getDydetail(productId) {
  return request({
    url: '/system/dydetail/' + productId,
    method: 'get'
  })
}

// 新增抖音商品详情
export function addDydetail(data) {
  return request({
    url: '/system/dydetail',
    method: 'post',
    data: data
  })
}

// 修改抖音商品详情
export function updateDydetail(data) {
  return request({
    url: '/system/dydetail',
    method: 'put',
    data: data
  })
}

// 删除抖音商品详情
export function delDydetail(productId) {
  return request({
    url: '/system/dydetail/' + productId,
    method: 'delete'
  })
}
